package src.view;


import java.awt.Dimension;
import java.awt.Image;

/**
 * <b>Overview</b>
 * A Drawable object allows an image of a specified size to be drawn to it at a specified coordinate, then maintains that image until it is overridden with another image.
 *
 * <b>Responsibilities</b>
 * Display an image and maintain it until it is overwritten.
 *
 * <b>Collaborators</b>
 * None.
 *
 * <b>Implementor</b> - Bruce
 * <b>Tester</b> - Tim
 *
 * @author Bruce
 */
public interface Drawable
{
	/**
	 * Draws an image to the display.
	 *
	 * @param image the Image to draw to the display.
	 * @param x the top-left X coordinate to draw to.
	 * @param y the top-left Y coordinate to draw to.
	 * @param width the width of the image.
	 * @param height the height if the image.
	 */
	public void draw(Image image, int x, int y, int width, int height);

	/**
	 * @return the displayable dimensions of this drawable object.
	 */
	public Dimension getSize();
}